package OceanWorld2;

/**
 * Created by pc on 3/29/16.
 */
public class Submarine extends Boat implements Diver {
    public Submarine(String name) {
        super(name);
    }

    @Override
    public void dive() {
        System.out.printf("submarine %s diving%n", name);
    }
}
